package com.flychord.service.impl;

import java.util.*;
import com.flychord.entity.coursemanage.PlanCourseBuyDTO;
import com.flychord.mapper.PlanCourseBuyMapper;
import com.flychord.service.PlanCourseBuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PlanCourseBuyServiceImpl implements PlanCourseBuyService {
	
	@Autowired
	private PlanCourseBuyMapper planCourseBuyMapper;

	public List<PlanCourseBuyDTO> getPlanCourseBuyList(Map<Object, Object> condition) {
		return planCourseBuyMapper.getPlanCourseBuyList(condition);
	}

	public long getPlanCourseBuyCount(Map<Object, Object> condition) {
		return planCourseBuyMapper.getPlanCourseBuyCount(condition);
	}

	public long addPlanCourseBuy(PlanCourseBuyDTO planCourseBuyDTO) {
		return planCourseBuyMapper.addPlanCourseBuy(planCourseBuyDTO);
	}

	public long deletePlanCourseBuy(Long id) {
		return planCourseBuyMapper.deletePlanCourseBuy(id);
	}

	public long updatePlanCourseBuy(PlanCourseBuyDTO planCourseBuyDTO) {
		return planCourseBuyMapper.updatePlanCourseBuy(planCourseBuyDTO);
	}
	
	public PlanCourseBuyDTO getPlanCourseBuyById(Long id) {
		return planCourseBuyMapper.getPlanCourseBuyById(id);
	}

}
